import type { ProjectListResult, PurchaseListResult } from '@/api/model/detailModel';

import { request } from '../request';

const Api = {
  PurchaseList: '/get-purchase-list',
  ProjectList: '/get-project-list',
};

export default {
  getPurchaseList() {
    return request.get<PurchaseListResult>({
      url: Api.PurchaseList,
    });
  },
  getProjectList() {
    return request.get<ProjectListResult>({
      url: Api.ProjectList,
    });
  },
};
